<!DOCTYPE html>
<html>
<head>
    <title>微信登录</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="https://res.wx.qq.com/connect/zh_CN/htmledition/style/impowerApp45a337.css">
    <link href="https://res.wx.qq.com/connect/zh_CN/htmledition/images/favicon3696b4.ico" rel="Shortcut Icon">
    <script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/jquery.min3696b4.js"></script>
</head>
<body>
<div class="old-template" style="display: none;">
    <div class="main impowerBox">
        <div class="loginPanel normalPanel">
            <div class="title">微信登录</div>
            <div class="waiting panelContent">
                <div class="wrp_code">
                    <img class="qrcode lightBorder" src="/connect/qrcode/051x84A40gTZZv3U"/>
                </div>
                <div class="info">
                    <div class="status status_browser js_status js_wx_default_tip" id="wx_default_tip">
                        <p>请使用微信扫描二维码登录</p>
                        <p>“爱奇艺”</p>
                    </div>
                    <div class="status status_succ js_status js_wx_after_scan" style="display:none" id="wx_after_scan">
                        <i class="status_icon icon38_msg succ"></i>
                        <div class="status_txt">
                            <h4>扫描成功</h4>
                            <p>请在微信中点击确认即可登录</p>
                        </div>
                    </div>
                    <div class="status status_fail js_status js_wx_after_cancel" style="display:none"
                         id="wx_after_cancel">
                        <i class="status_icon icon38_msg warn"></i>
                        <div class="status_txt">
                            <h4>您已取消此次登录</h4>
                            <p>您可再次扫描登录，或关闭窗口</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="new-template" style="display: none;">
    <div class="wechat-bg"></div>
    <div class="wechat-logo"></div>
    <div class="redesign-login__area">
        <div class="redesign-login__wrp">
            <div class="redesign-login__title">微信登录“爱奇艺”</div>
            <div class="redesign-login__card">
                <div class="redesign-login__qrcheck">
                    <img class="qrcode-image js_qr_img" src="/connect/qrcode/051x84A40gTZZv3U"/>
                    <div class="redesign-msg_text js_status js_wx_default_tip" id="wx_default_tip">
                        <h4>请使用微信扫描二维码登录</h4>
                    </div>
                </div>
                <div class="redesign-msg redesign-msg_success js_status js_wx_after_scan" style="display:none"
                     id="wx_after_scan">
                    <i class="redesign-msg__icon redesign-msg__icon_success"></i>
                    <div class="redesign-msg_text">
                        <h4>扫描成功</h4>
                        <p>请在微信中点击确认即可登录</p>
                    </div>
                </div>
                <div class="redesign-msg redesign-msg_warn js_status js_wx_after_cancel" style="display:none"
                     id="wx_after_cancel">
                    <i class="redesign-msg__icon redesign-msg__icon_warn"></i>
                    <div class="redesign-msg_text">
                        <h4>您已取消此次登录</h4>
                        <p>您可再次扫描登录，或关闭窗口</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    // @cunjin 下面的变量是给开发者工具用的，inline到html里面，一定不能删掉
    var fordevtool = "https://long.open.weixin.qq.com/connect/l/qrconnect?uuid=051x84A40gTZZv3U"
    console.log('devtool use', fordevtool)
</script>
<script>
    var usenewdomain = '1' * 1 || 0
</script>
<script>
    function AQ_SECAPI_ESCAPE(a, b) {
        for (var c = new Array, d = 0; d < a.length; d++)
            if ("&" == a.charAt(d)) {
                var e = [3, 4, 5, 9]
                        , f = 0;
                for (var g in e) {
                    var h = e[g];
                    if (d + h <= a.length) {
                        var i = a.substr(d, h).toLowerCase();
                        if (b[i]) {
                            c.push(b[i]),
                                    d = d + h - 1,
                                    f = 1;
                            break
                        }
                    }
                }
                0 == f && c.push(a.charAt(d))
            } else
                c.push(a.charAt(d));
        return c.join("")
    }
    function AQ_SECAPI_CheckXss() {
        for (var a = new Object, b = "'\"<>`script:daex/hml;bs64,", c = 0; c < b.length; c++) {
            for (var d = b.charAt(c), e = d.charCodeAt(), f = e, g = e.toString(16), h = 0; h < 7 - e.toString().length; h++)
                f = "0" + f;
            a["&#" + e + ";"] = d,
                    a["&#" + f] = d,
                    a["&#x" + g] = d
        }
        a["&lt"] = "<",
                a["&gt"] = ">",
                a["&quot"] = '"';
        var i = location.href
                , j = document.referrer;
        i = decodeURIComponent(AQ_SECAPI_ESCAPE(i, a)),
                j = decodeURIComponent(AQ_SECAPI_ESCAPE(j, a));
        var k = new RegExp("['\"<>`]|script:|data:text/html;base64,");
        if (k.test(i) || k.test(j)) {
            var l = "1.3"
                    , m = "http://zyjc.sec.qq.com/dom"
                    , n = new Image;
            n.src = m + "?v=" + l + "&u=" + encodeURIComponent(i) + "&r=" + encodeURIComponent(j),
                    i = i.replace(/['\"<>`]|script:/gi, ""),
                    i = i.replace(/data:text\/html;base64,/gi, "data:text/plain;base64,"),
                    location.href = i
        }
    }
    AQ_SECAPI_CheckXss();
</script>
<script>
    !function () {
        function a(a) {
            var b = document.location.search || document.location.hash;
            if (b) {
                if (/\?/.test(b) && (b = b.split("?")[1]),
                        null == a)
                    return decodeURIComponent(b);
                for (var c = b.split("&"), d = 0; d < c.length; d++)
                    if (c[d].substring(0, c[d].indexOf("=")) == a)
                        return decodeURIComponent(c[d].substring(c[d].indexOf("=") + 1))
            }
            return ""
        }

        function b(a) {
            jQuery.ajax({
                type: "GET",
                url: p + "/connect/l/qrconnect?uuid=051x84A40gTZZv3U" + (a ? "&last=" + a : ""),
                dataType: "script",
                cache: !1,
                timeout: 6e4,
                success: function (a, e, f) {
                    var g = window.wx_errcode;
                    switch (g) {
                        case 405:
                            var h = "http://passport.iqiyi.com/apis/thirdparty/ncallback.action?from=29&amp;source=29&amp;agenttype=1&amp;device_id=361efc67038001b3a5f09bab5bfd8660&amp;isframe=1&amp;redirect_url=http%3A%2F%2Fpassport.iqiyi.com%2Fapis%2Fthirdparty%2Fncallback.action%3Ffrom%3D29&amp;verifyPhone=1&amp;ptid=01010021010000000000&amp;exception_url=https%3A%2F%2Fwww.iqiyi.com%2Fthirdlogin%2Fclose.html&amp;success_url=https%3A%2F%2Fwww.iqiyi.com%2Fthirdlogin%2Fclose.html&amp;is_reg_confirm=1&amp;fromSDK=1";
                            h = h.replace(/&amp;/g, "&"),
                                    h += (h.indexOf("?") > -1 ? "&" : "?") + "code=" + wx_code + "&state=";
                            var i = c("self_redirect");
                            if (d)
                                if ("true" !== i && "false" !== i)
                                    try {
                                        document.domain = "qq.com";
                                        var j = window.top.location.host.toLowerCase();
                                        j && (window.location = h)
                                    } catch (k) {
                                        window.top.location = h
                                    }
                                else if ("true" === i)
                                    try {
                                        window.location = h
                                    } catch (k) {
                                        window.top.location = h
                                    }
                                else
                                    window.top.location = h;
                            else
                                window.location = h;
                            break;
                        case 404:
                            jQuery(".js_status").hide(),
                                    jQuery(".js_qr_img").hide(),
                                    jQuery(".js_wx_after_scan").show(),
                                    setTimeout(b, 100, g);
                            break;
                        case 403:
                            jQuery(".js_status").hide(),
                                    jQuery(".js_qr_img").hide(),
                                    jQuery(".js_wx_after_cancel").show(),
                                    setTimeout(b, 2e3, g);
                            break;
                        case 402:
                        case 500:
                            window.location.reload();
                            break;
                        case 408:
                            setTimeout(b, 2e3)
                    }
                },
                error: function (a, c, d) {
                    var e = window.wx_errcode;
                    408 == e ? setTimeout(b, 5e3) : setTimeout(b, 5e3, e)
                }
            })
        }

        function c(a, b) {
            b || (b = window.location.href),
                    a = a.replace(/[\[\]]/g, "\\$&");
            var c = new RegExp("[?&]" + a + "(=([^&#]*)|&|#|$)")
                    , d = c.exec(b);
            return d ? d[2] ? decodeURIComponent(d[2].replace(/\+/g, " ")) : "" : null
        }

        var d = window.top != window;
        if (!d) {
            document.getElementsByClassName || (document.getElementsByClassName = function (a) {
                        for (var b = [], c = new RegExp("(^| )" + a + "( |$)"), d = document.getElementsByTagName("*"), e = 0, f = d.length; f > e; e++)
                            c.test(d[e].className) && b.push(d[e]);
                        return b
                    }
            );
            for (var e = document.getElementsByClassName("status"), f = 0, g = e.length; g > f; ++f) {
                var h = e[f];
                h.className = h.className + " normal"
            }
        }
        var i = parseInt(a("styletype"), 10)
                , j = parseInt(a("sizetype"), 10)
                , k = a("bgcolor")
                , l = NaN;
        if (1 !== i && 0 !== i && 1 === l && (i = 0),
                1 === i)
            d ? document.body.className = document.body.className + " redesign-style_iframe" + (1 === j ? " redesign-style_iframe-small" : "") : document.body.className = document.body.className + "redesign-style_page",
            k && (document.body.style.backgroundColor = k),
                    jQuery(".new-template").show();
        else {
            if (d) {
                var m = "";
                "white" != m && (document.body.style.color = "#373737")
            } else
                document.body.style.backgroundColor = "#333333",
                        document.body.style.padding = "50px";
            if (jQuery(".old-template").show(),
                    0 !== i) {
                var n = "";
                if (n) {
                    var o = document.createElement("link");
                    o.rel = "stylesheet",
                            o.href = n.replace(new RegExp("javascript:", "gi"), ""),
                            document.getElementsByTagName("head")[0].appendChild(o)
                }
            }
        }
        var p = window.usenewdomain ? "https://lp.open.weixin.qq.com" : "https://long.open.weixin.qq.com";
        setTimeout(b, 100)
    }();
</script>
</body>
</html>